Ext.define("AmpleHarvest.DATA.Store.cFacet",
{
	extend			: 'Ext.data.Store',
	requires		:
	[
		"AmpleHarvest.DATA.Model.cFacet"
	],	
	model			: 'AmpleHarvest.DATA.Model.cFacet',
	proxy			:
	{
		type	: 'ajax',
		url		: obj_config.C_STR_EXTERNAL_PATH+'/rest/solr/facet.php',
		reader	:
		{
			type	: 'json',
			root	: 'facets'
		}
	},

	set_Facet		: function(str_Facet)
	{
		this.proxy.extraParams.facet = str_Facet;
	},

	set_Prefix		: function(str_Prefix)
	{
		this.proxy.extraParams.prefix = str_Prefix;
	},

	set_BaseQuery	: function(str_Query)
	{
		this.proxy.extraParams.baseQuery = str_Query;
	},

	set_SolrType	: function(int_SolrType)
	{
		this.proxy.extraParams.solrType = int_SolrType;
	},

    set_DataType    : function(int_DataType)
    {
        this.proxy.extraParams.dataType = int_DataType;
    }
}
);
